// should be used with the goleri module.
//
// Source class: SiriGrammar
-// Created at: 2018-06-29 17:12:20
+// Created at: 2018-06-29 22:48:05
import (
"regexp"
* should be used with the libcleri module.
*
* Source class: SiriGrammar
- * Created at: 2018-06-29 17:09:17
+ * Created at: 2018-06-29 22:48:05
*/
#ifndef CLERI_EXPORT_SIRI_GRAMMAR_GRAMMAR_H_
#define CLERI_EXPORT_SIRI_GRAMMAR_GRAMMAR_H_
* should be used with the libcleri module.
*
* Source class: SiriGrammar
- * Created at: 2018-06-29 17:09:17
+ * Created at: 2018-06-29 22:48:05
*/
#include "siri/grammar/grammar.h"
cleri_t * help_timeit = cleri_keyword(CLERI_GID_HELP_TIMEIT, "timeit", CLERI_CASE_SENSITIVE);
cleri_t * help_timezones = cleri_keyword(CLERI_GID_HELP_TIMEZONES, "timezones", CLERI_CASE_SENSITIVE);
cleri_ref_set(help_stmt, cleri_sequence(
- CLERI_NONE,
+ CLERI_GID_HELP_STMT,
2,
k_help,
cleri_optional(CLERI_NONE, cleri_choice(
static void enter_help(uv_async_t * handle)
{
- LOGC("Enter!!");
siridb_query_t * query = (siridb_query_t *) handle->data;
cleri_node_t * node = query->nodes->node;
{
siridb_query_t * query = (siridb_query_t *) handle->data;
- LOGC("HERE....");
-
if (query->data != NULL)
{
#if DEBUG
assert (query->packer == NULL);
#endif
- LOGC("HERE1....%u", query->nodes->node->cl_obj->gid);
const char * help = siri_help_get(
query->nodes->node->cl_obj->gid,
(const char *) query->data,
if (help == NULL)
{
- LOGC("HERE2....");
siridb_query_send_error(handle, CPROTO_ERR_QUERY);
return;
}